/*
 * Created by JFormDesigner on Tue Oct 21 13:12:56 CST 2025
 */

package com.yeban.javase.day10.swing_learn.jpanel;

import java.awt.*;
import javax.swing.*;

/**
 * @author yeban
 */
public class RegisterPanel extends JPanel {
    public RegisterPanel() {
        initComponents();
    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents  @formatter:off
        titleLabel = new JLabel();
        label1 = new JLabel();

        //======== this ========
        setLayout(null);

        //---- titleLabel ----
        titleLabel.setText("\u6ce8  \u518c  \u754c  \u9762");
        titleLabel.setHorizontalAlignment(SwingConstants.CENTER);
        titleLabel.setFont(new Font("Microsoft YaHei UI", Font.PLAIN, 20));
        add(titleLabel);
        titleLabel.setBounds(105, 70, 155, 30);

        //---- label1 ----
        label1.setText("text");
        add(label1);
        label1.setBounds(new Rectangle(new Point(65, 130), label1.getPreferredSize()));

        setPreferredSize(new Dimension(400, 300));
        // JFormDesigner - End of component initialization  //GEN-END:initComponents  @formatter:on
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables  @formatter:off
    private JLabel titleLabel;
    private JLabel label1;
    // JFormDesigner - End of variables declaration  //GEN-END:variables  @formatter:on
}
